<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <h1>错误信息!</h1>
        <h2 th:each="error : ${errors}">
            <span th:text="${error.defaultMessage}"></span>
        </h2>
    </body>

</html>